package com.example.echoewish.repository.network;

import com.example.echoewish.repository.network.service.PreConcernService;
import com.example.echoewish.util.ServiceCreator;

import retrofit2.Callback;


public class PreConcernServiceNetWork {
    public static void sendConcernRequest(int hostId, int friId, Callback callback)
    {
        PreConcernService preConcernService= new ServiceCreator().create(PreConcernService.class);
        preConcernService.sendConcernRequest(hostId,friId).enqueue(callback);
    }

    public static void acceptConcernRequest(int hostId,int friId, Callback callback)
    {
        PreConcernService preConcernService= new ServiceCreator().create(PreConcernService.class);
        preConcernService.acceptConcernRequest(hostId,friId).enqueue(callback);
    }

    public static void refuseConcernRequest(int hostId,int friId, Callback callback)
    {
        PreConcernService preConcernService= new ServiceCreator().create(PreConcernService.class);
        preConcernService.refuseConcernRequest(hostId,friId).enqueue(callback);
    }
    public static void getMyPreConcernRequests(int hostId,Callback callback)
    {
        PreConcernService preConcernService= new ServiceCreator().create(PreConcernService.class);
        preConcernService.getMyPreConcernRequests(hostId).enqueue(callback);
    }
}
